//
//  NSString+YDYExtension.m
//  DY_Weibo3
//
//  Created by 杨德勇 on 2016/8/20.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import "NSString+YDYExtension.h"

@implementation NSString (YDYExtension)
-(NSString *)ydy_docAddress{
    NSString *path =  NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomainMask, YES).lastObject;
    NSString *filepath = [path stringByAppendingPathComponent:self];
    
    return filepath;
}
-(NSString *)ydy_cachesAddress{
    NSString *path =  NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).lastObject;
    NSString *filepath = [path stringByAppendingPathComponent:self];
    
    return filepath;
}
-(NSString *)ydy_tempAddress{
    NSString *path = NSTemporaryDirectory();
    NSString *filepath = [path stringByAppendingString:self];
    
    return filepath;
    
}
@end
